package com.qf.pojo.respVo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @ClassName
 * @Description
 * @Author
 * @Date 2022/08/09
 * @Version
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BaseResp {
    private Integer code;
    private String msg;
    private Object data;
    private Long total;

    public BaseResp success(){
        return new BaseResp(1,"成功！",null,null);
    }

    public BaseResp error(){
        return new BaseResp(0,"失败！",null,null);
    }
}
